/*
 * @description: 红星闪闪
 * @author: 陈锦
 * @Date: 2021-09-09 09:04:04
 * @LastEditTime: 2021-09-09 10:02:09
 */
export const request3 = (urlConfig2, url, method, params) => {
    return new Promise((resolve, reject) => {
        uni.request({
            url: urlConfig2 + url,
            method,
            dataType: 'json',
            timeout: 5000,
            sslVerify: false,
            ...params, //  { data, power}
            success: res => {
                console.log(res);
                resolve(res);
            },
            fail: function (err) {
                console.log(err);
                reject({ err, url: urlConfig2 + url });
            },
            complete: function (res) {},
        });
    });
};
